package org.pay.service.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.pay.core.entity.PayChannel;
import org.pay.core.entity.PayChannelExample;

import java.util.List;
import java.util.Map;

public interface PayChannelMapper {
    int countByExample(PayChannelExample example);

    int deleteByExample(PayChannelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PayChannel record);

    int insertSelective(PayChannel record);

    List<PayChannel> selectByExample(PayChannelExample example);

    PayChannel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PayChannel record, @Param("example") PayChannelExample example);

    int updateByExample(@Param("record") PayChannel record, @Param("example") PayChannelExample example);

    int updateByPrimaryKeySelective(PayChannel record);

    int updateByPrimaryKey(PayChannel record);

    /**
     * 查询商户的支付通道(针对平台账户)
     * @param param
     * @return
     */
    List<PayChannel> selectByMch(@Param("param")Map param);
}